Skip to content

Conversation

@Ukj0ng
Copy link
Contributor

@Ukj0ng Ukj0ng commented Dec 15, 2025

🧷 문제 링크

https://www.acmicpc.net/problem/27651

🧭 풀이 시간

60분

👀 체감 난이도

✏️ 문제 설명

벌레의 머리 가슴 배를 나눌 껀데, 머리 < 배, 배 < 가슴의 경우의 수는?

🔍 풀이 방법

X를 하나씩 고정하고, Y를 이분탐색으로 진행한다. 이때, 하나하나 개수를 세는 것이 아니라 lowerBound, upperBound를 계산해서 개수를 센다.

⏳ 회고

lowerBound, upperBound로 계산하는건 참신했다. 하나씩 세면 시간초과가 발생한다.

@ShinHeeEul ShinHeeEul merged commit 890461f into main Dec 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants